package com.yaorange.nongjt.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.yaorange.nongjt.mapper.NjtInspectionReportMapper;
import com.yaorange.nongjt.domain.NjtInspectionReport;
import com.yaorange.nongjt.service.INjtInspectionReportService;

/**
 * 检测报告Service业务层处理
 * 
 * @author hzliu
 * @date 2025-03-02
 */
@Service
public class NjtInspectionReportServiceImpl implements INjtInspectionReportService 
{
    @Autowired
    private NjtInspectionReportMapper njtInspectionReportMapper;

    /**
     * 查询检测报告
     * 
     * @param id 检测报告主键
     * @return 检测报告
     */
    @Override
    public NjtInspectionReport selectNjtInspectionReportById(Long id)
    {
        return njtInspectionReportMapper.selectNjtInspectionReportById(id);
    }

    /**
     * 查询检测报告列表
     * 
     * @param njtInspectionReport 检测报告
     * @return 检测报告
     */
    @Override
    public List<NjtInspectionReport> selectNjtInspectionReportList(NjtInspectionReport njtInspectionReport)
    {
        return njtInspectionReportMapper.selectNjtInspectionReportList(njtInspectionReport);
    }

    /**
     * 新增检测报告
     * 
     * @param njtInspectionReport 检测报告
     * @return 结果
     */
    @Override
    public int insertNjtInspectionReport(NjtInspectionReport njtInspectionReport)
    {
        return njtInspectionReportMapper.insertNjtInspectionReport(njtInspectionReport);
    }

    /**
     * 修改检测报告
     * 
     * @param njtInspectionReport 检测报告
     * @return 结果
     */
    @Override
    public int updateNjtInspectionReport(NjtInspectionReport njtInspectionReport)
    {
        return njtInspectionReportMapper.updateNjtInspectionReport(njtInspectionReport);
    }

    /**
     * 批量删除检测报告
     * 
     * @param ids 需要删除的检测报告主键
     * @return 结果
     */
    @Override
    public int deleteNjtInspectionReportByIds(Long[] ids)
    {
        return njtInspectionReportMapper.deleteNjtInspectionReportByIds(ids);
    }

    /**
     * 删除检测报告信息
     * 
     * @param id 检测报告主键
     * @return 结果
     */
    @Override
    public int deleteNjtInspectionReportById(Long id)
    {
        return njtInspectionReportMapper.deleteNjtInspectionReportById(id);
    }
}
